<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>联系我们</title>
  <!-- 引入Bootstrap  的css样式库  以及js封装的框架库-->
  <link href="css/bootstrap.css" rel="stylesheet">
  <script src="js/jquery-3.5.1.js"></script>
  <script src="js/bootstrap.js"></script>
  <link rel="stylesheet" href="css/mottos.css">
  <link rel="stylesheet" href="css/show.css">
  <link rel="icon" href="images/12.ico">
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    body{
      background-color: #212020;
    }
    #container{
      width: 80%;
      margin: 100px auto;
      text-align: center;
      vertical-align: middle;
      color: #fff;
    }
    #contact, #appreciate{
      display: inline-block;
     /*  平分父容器的宽度*/
      width: 45%;
      text-align: center;
      margin: 20px auto;
    }
    img{
      width: 300px;
      border-radius: 10%;
    }
    h3{
      color: red;
    }
    p{
      width: 40%;
      color: yellow;
      margin: 0 auto;
    }
    @media (max-width: 1024px) {
      #container{
        margin: 20px auto;
      }
      #contact, #appreciate{
        display: block;
        text-align: center;
        width: 80%;
      }
      img{
        width: 60%;
      }
      p{
        width: 50%;
        color: yellow;
        margin: 0 auto;
      }
    }
  </style>
</head>
<body>
<%--    引入导航  ctrl + alt + -号,折叠代码  --%>
<nav class="navbar navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
              data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">切换导航</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="getTask.jsp" target="_parent">首页·计划管理</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a target="_parent" href="TaskLineServlet">任务成就</a></li>
        <li><a target="_parent" href="ProSpectServlet?what=query">布局·规划</a></li>
        <li><a target="_parent" href="URLServlet?what=query">重要网址</a></li>
        <li><a target="_parent" href="NoteServlet?what=query">重要记事</a></li>
        <li><a target="_parent" href="mottos.jsp">感悟·格言</a></li>
        <li><a target="_parent" href="bookNotes.jsp">读书笔记</a></li>

      </ul>

      <ul class="nav navbar-nav navbar-right">
        <li><a target="_parent" id="login_out">
          <%   String uname = (String) session.getAttribute("uname");
            String welcomeMessage = "欢迎,登录";
            if (uname != null && !uname.isEmpty()) {
              welcomeMessage = "欢迎," + uname + "[退出登录]";
            }
            out.print(welcomeMessage);
          %>
        </a></li>
        <li><a target="_parent" href="regist.jsp">注册</a></li>
        <li><a target="_parent" href="#">会员中心</a></li>
        <li><a target="_parent" href="Contact_us.jsp">联系我们</a></li>
      </ul>
    </div>
  </div>
</nav>

  <div id="container">
    <div id="contact">
        <img src="images/contact/author.jpg">
        <h3>联系作者</h3>
        <p>欢迎提出宝贵意见，共同进步！</p>
    </div>
    <div id="appreciate">
      <img src="images/contact/appreciate.png" >
      <h3>慷慨赞赏</h3>
      <p>感谢您的赞助，我们将会把赞助金额用于改进产品和服务！</p>
    </div>
  </div>
</body>
</html>
